package cn.edu.scnu.socialapp.model.vo;

public enum ErrorCode {
    PARAMS_ERROR(10001,"参数有误"),
    ACCOUNT_PWD_NOT_EXIST(10002,"用户名或密码不存在"),
    EDIT_FAILED(10003,"修改失败"),
    ACCOUNT_EXIST(10004, "账号已存在"),
    DELETE_FAILED(10005,"删除失败"),
    CAPTCHA_WRONG(10006,"验证码错误"),
    CAPTCHA_EXPIRED(10007, "验证码已过期"),
    EMAIL_CAPTCHA_SEND_EXCEPTION(10008, "邮箱验证码发送失败"),
    UPLOAD_FAILED(10009,"上传失败"),
    CACHE_ERROR(10010,"缓存失败"),
    NO_PERMISSION(10011,"无访问权限"),
    LOGIN_INVALID(10012,"登录失效"),
    NO_LOGIN(10013,"未登录");


    private int code;
    private String message;

    ErrorCode(int code, String message){
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
